﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Role.aspx.cs" Inherits="System_Role" %>
<html>
<head runat="server">
<title>角色管理</title>
<script type="text/javascript" src="../js/changerows.js"></script>
<link href="../css/adminCss.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
function CheckAll(form) {
    for (var i=0;i<form.elements.length;i++) {
	    var e = form.elements[i];
	    if (e.name != 'chkall' && e.type=='checkbox')
		    e.checked = form.chkall.checked;
    }
}
</script>
<link href="../js/loading.css" rel="stylesheet" type="text/css" />
</head>
<script type="text/javascript" src="../js/loading.js" charset="gb2312"></script>
<body>
    <form id="form1" runat="server">
    <table width="99%" border="0" cellpadding="0" cellspacing="0">
  <tr> 
    <td width="31" style="height: 25px"><img src="../images/module.gif" width="20" height="22"></td>
    <td style="width: 232px; height: 25px;">
        <asp:Label ID="lblPath" runat="server"></asp:Label></td>
    <td width="990" align="right" style="height: 25px"><img src="../images/search.gif" alt="搜索" width="16" height="16"/>名称：<asp:TextBox
            ID="TextBox1" runat="server" CssClass="input1"></asp:TextBox>
        <asp:Button ID="btnSearch" runat="server" Text="搜索" CssClass="submit" CausesValidation="False" OnClick="btnSearch_Click"  /></td>
  </tr>
</table>
<table width="99%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td bgcolor="#3CB6E5" height="5px"></td>
  </tr>
</table>

        <asp:GridView ID="gvData" runat="server" AutoGenerateColumns="False" Width="99%" CssClass="gridview" RowStyle-HorizontalAlign="center" EmptyDataText="没有数据" OnRowDataBound="GvDataType_RowDataBound">
            <Columns>
                <asp:BoundField DataField="roleid" HeaderText="Id" />
                <asp:BoundField DataField="role" HeaderText="角色名称" />
                <asp:BoundField DataField="ProNum" HeaderText="人数" />
                <asp:TemplateField HeaderText="操作">
                    <ItemTemplate>
                        <asp:LinkButton ID="lnkbtnEdit" CssClass="lnkbtn" runat="server" CommandArgument='<%#Eval("roleid") %>' OnClick="lnkbtnEdit_Click">修改</asp:LinkButton>
                        <asp:LinkButton ID="lnkbtnSet" CssClass="lnkbtn" runat="server" CommandArgument='<%#Eval("roleid") %>' OnClick="lnkbtnSet_Click">权限设置</asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="选择"><ItemTemplate>
                    <asp:CheckBox ID="chkDelete"  runat="server" />
                </ItemTemplate>
                    <ItemStyle Width="50px" />
                </asp:TemplateField>
            </Columns>
            <RowStyle HorizontalAlign="Center" />
        </asp:GridView>
        <table width="99%" border="0" cellspacing="0" cellpadding="0">
        <tr>
            <td height="30px" align="right"><input type="checkbox" name="chkall" onClick="CheckAll(this.form)" value="on"><font color="#FF0000">全选</font>&nbsp;
            <asp:Button ID="btnCancel" runat="server" Text="添加" CssClass="submit" CausesValidation="False"  OnClick="btnCancel_Click" />&nbsp;<asp:Button  ID="Button1" runat="server" Text="删除" CssClass="submit" OnClientClick="return confirm('确定要删除吗?')" OnClick="Button1_Click" />
        
        </td>
      </tr>
      </table>
        <p>
            <asp:Label ID="lblMsg" runat="server" Text=""></asp:Label>&nbsp;
        </p>
    </form>
</body>
</html>
<script language="javascript"><!--
//senfe("表格名称","奇数行背景","偶数行背景","鼠标经过背景","点击后背景");
 senfe("gvData","#ECF9FC","#FFFFFF","#D6F1F8");
--></script>
